#include "singleton.h"

using namespace singleton;

Singleton* Singleton::g_instance = new Singleton();

Singleton* Singleton::GetInstance()
{
    if (g_instance == 0)
    {
        std::cout << "singleton initing..." << std::endl;
        g_instance = new Singleton();
    }

    return g_instance;
}
